package com.example.androidtest.demo;

import android.os.Bundle;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

import com.example.androidtest.R;

public class Main2Activity extends AppCompatActivity {
    TextView tv_second;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_demo2);
         tv_second=findViewById(R.id.tv_second);

        String username=getIntent().getStringExtra("username");
        tv_second.setText(username);
    }
}
